<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>系统管理</title>
<%@ include file="/common/util.jsp"%>
<script type="text/javascript">
$().ready(function() {
	$("#addElecPriceForm").validate({
		rules: {
			'epricecode': {
                        required: true,
                        existEPriceCode: [$("#id").val()]
                  },
			'epricetype': "required",
			'stime': "required",
			'etime': "required",
			'unitprice': {
                        required: true,
                        number:true
                  },
		},
		messages: {
			'epricecode': "电价番号",
			'epricetype': "电价类型",
			'stime': "开始时间",
			'etime': "结束时间",
			'unitprice': "单价"
		}
	});
});
</script>
</head>
<body class="main">
	<div class="-frame -style -luster" id="css_container">
		<!--首页框架页眉部分↓-->
		<%@ include file="/WEB-INF/pages/inc/header.jsp"%>
		<!--首页框架页眉部分↑-->

		<div class="content">

			<!-- Left导航菜单◎开始 -->
			<%@ include file="/WEB-INF/pages/inc/leftmenu.jsp"%>
			<!-- Left导航菜单◎结束 -->

			<div class="main-mid">
				<div class="pos"><img src="${cdnctx}/src/index/img/index.png"><a href="<%--${cdnctx}/system/systemMenu.shtml--%>">系统管理  ></a><a href="${cdnctx}/systemElecPrice/elecPriceList.shtml">电价表管理</a><a>> <c:if test="${empty elecPrice.id }">添加</c:if><c:if test="${not empty elecPrice.id }">编辑</c:if>电价表数据</a></div>
				<div class="css_contentDiv">
					<div class="searchDetailed">
					<form id="addElecPriceForm" method="post" action="${cdnctx}/systemElecPrice/addElecPrice.shtml">
						  <input type="hidden" id="id"  name="id" value="${elecPrice.id}"/>
						  <table align="center" width="800" border="0" cellspacing="0" cellpadding="0">
             				 <tr>
             				 	 <td style="width:150px;" class="mainText"><label class="formlabel"><font color="red">*</font>电价番号：</label></td>
             				 	 <td>
             				 	 <input type="text" class="form_input large" name="epricecode" id="epricecode" value="${elecPrice.epricecode}" maxlength="11"/>
			                      </td><td width="120">
             				 	 </td>
             				 </tr>
             				 <tr>
             				 	 <td class="mainText"> <label class="formlabel"><font color="red">*</font>电价类型：</label></td>
             				 	 <td width="204">
             				 	 	<select name="epricetype" id="epricetype" class="form_select large">
             				 	 		<c:forEach items="${elecPriceTypes}" var="entity">
             				 	 			<option value="${entity.id}">${entity.typename}</option>
             				 	 		</c:forEach>
             				 	 	</select>
             				 	 </td>
             				 </tr>
             				 <tr>
             				 	 <td class="mainText"> <label class="formlabel"><font color="red">*</font>开始时间：</label></td>
             				 	 <td>
             				 	 <input id="stime" type="text" class="form_input large Wdate" style="cursor: pointer;" name="stime" value="${elecPrice.stime}" onfocus="WdatePicker({readOnly:true,dateFmt:'HH:mm:ss'})" class="Wdate" readonly="readonly">
             				 	  </td><td>
             				 	 </td>
             				 </tr>
             				 <tr>
             				 	 <td class="mainText"> <label class="formlabel"><font color="red">*</font>结束时间：</label></td>
             				 	 <td>
             				 	 <input id="etime" type="text" class="form_input large Wdate" style="cursor: pointer;" name="etime" value="${elecPrice.etime}" onfocus="WdatePicker({readOnly:true,dateFmt:'HH:mm:ss'})" class="Wdate" readonly="readonly">
             				 	  </td><td>
             				 	 </td>
             				 </tr>
             				 <tr>
             				 	 <td class="mainText"> <label class="formlabel"><font color="red">*</font>单价(元)：</label></td>
             				 	 <td>
             				 	 <input type="text" class="form_input large"  id="unitprice" name="unitprice" value="${elecPrice.unitprice}" maxlength="10"/>
             				 	  </td><td>
             				 	 </td>
             				 </tr>
             				  <tr>
             				 	 <td class="mainText"> <label class="formlabel"> &nbsp;&nbsp;备注：</label></td>
             				 	 <td>
                                                <textarea id="memo" name="memo" rows="4" cols="77" class="form_textarea large" >${elecPrice.memo}</textarea>
             				 	 </td>
             				 </tr>
             				 <tr>
             				 	<td height="20"></td>
             				 </tr>
             				 <tr>
             				 	<td ></td>
					            <td>
						      <input type="submit" class="form_save" value="保&nbsp;存"/>
							<input type="reset" class="form_cancle" value="重&nbsp;置" />
				             </td>
             				 </tr>
             				</table>
              		</form>
              		</div>
				</div>
			</div>

		</div>

		<!--首页框架页尾部分↓-->
		<%@ include file="/WEB-INF/pages/inc/footer.jsp"%>
		<!--首页框架页尾部分↑-->
	</div>
</body>
</html>